<form name="codeForm" ng-init="dvm.init()" ng-submit="dvm.submit(codeForm.$valid)" novalidate>
  <div class="modal-header">
    <button type="button" class="close" ng-click="dvm.cancel()">&times;</button>
    <winresize on-changed="dvm.resize"></winresize>
    <h4 class="modal-title">代码</h4>
  </div>
  <div class="modal-body">
    <div class="form-group">
      <combobox id="language" ng-model="dvm.lang" autofocus required editable="dvm.editable" disabled="!dvm.enabled"
          options="dvm.options" on-selected="dvm.select"></combobox>
    </div>
    <div class="form-group">
      <pre id="source-editor" style="height:500px"></pre>
    </div>
  </div>
  <div class="modal-footer">
    <button type="submit" class="btn btn-default" ng-disabled="codeForm.$invalid">
      <i class="fa fa-check"></i> 确定</button>
    <button type="button" class="btn btn-default" ng-click="dvm.cancel()">
      <i class="fa fa-times"></i> 取消</button>
  </div>
</form>
